package com.linzelin.po;

/**
 * 代理对象
 * 万恶中介出现了
 */
public class Proxy implements Rent {

    private Rent host;

    public Proxy(Rent host) {
        this.host = host;
    }

    @Override
    public void rent() {
        System.out.println("中介带你租房子");
        host.rent();
    }

    public void other() {
        System.out.println("中介带你嘿嘿嘿");
    }
}
